package com.lzx.service.zjwd.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zjwd.ZjxxMapper;
import com.lzx.mapper.zlzs.CommodityMapper;
import com.lzx.model.zjwd.Zjxx;
import com.lzx.model.zlzs.Commodity;
import com.lzx.service.zjwd.ZjxxService;
import com.lzx.service.zlzs.CommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("zjxxService")
public class ZjxxServiceImpl extends ServiceImpl<ZjxxMapper,Zjxx> implements ZjxxService {
    @Autowired
    private ZjxxMapper zjxxMapper;

    @Override
    public List<Zjxx> queryList(Zjxx demo){
        return zjxxMapper.selectList(new EntityWrapper<Zjxx>());
    }

    @Override
    public List<Zjxx> selectdemolist( ){
        try {
            return zjxxMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Zjxx selectdemobyid(String id){
        try {
            return zjxxMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
